<div id="editResourceStoreModel" class="modal fade" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true"
     xmlns:v-bind="http://www.w3.org/1999/xhtml">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-body">
                <h3 class="m-t-none m-b ">
                    <span><vc:i18n name="修改物品" namespace="editResourceStore"></vc:i18n></span>
                </h3>
                <div class="ibox-content">
                    <div>
                        <div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label text-right">
                                    <span><vc:i18n name="物品名称" namespace="editResourceStore"></vc:i18n></span>
                                </label>
                                <div class="col-sm-4">
                                    <input v-model="editResourceStoreInfo.resName" type="text"
                                           :disabled="editResourceStoreInfo.shType == '2807'"
                                           :placeholder="vc.i18n('必填，请填写物品名称','editResourceStore')"
                                           class="form-control">
                                </div>
                                <label class="col-sm-2 col-form-label text-right">
                                    <span><vc:i18n name="物品编码" namespace="editResourceStore"></vc:i18n></span>
                                </label>
                                <div class="col-sm-4">
                                    <input v-model="editResourceStoreInfo.resCode" type="text" disabled="disabled"
                                           :placeholder="vc.i18n('必填，请填写物品编码，如终端串码','editResourceStore')"
                                           class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label text-right">
                                    <span><vc:i18n name="物品类型" namespace="editResourceStore"></vc:i18n></span>
                                </label>
                                <div class="col-sm-4">
                                    <select class="custom-select" v-model="editResourceStoreInfo.parentRstId"
                                            :disabled="editResourceStoreInfo.shType == '2807'"
                                            @change="resourceStoreTypesOnChangeEdit">
                                        <option v-for="(item,index) in editResourceStoreInfo.parentRstIds" :key="index"
                                                v-bind:value="item.rstId">{{item.name}}
                                        </option>
                                    </select>
                                </div>
                                <label class="col-sm-2 col-form-label text-right">
                                    <span><vc:i18n name="二级分类" namespace="editResourceStore"></vc:i18n></span>
                                </label>
                                <div class="col-sm-4">
                                    <select class="custom-select" v-model="editResourceStoreInfo.rstId"
                                            :disabled="editResourceStoreInfo.shType == '2807'"
                                            @change="resourceStoreSonTypesOnChangeEdit">
                                        <option selected disabled value="">
                                            {{vc.i18n('必填，请选择二级分类','editResourceStore')}}
                                        </option>
                                        <option v-for="(item,index) in editResourceStoreInfo.rstIds" :key="index"
                                                v-bind:value="item.rstId">{{item.name}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label text-right">
                                    <span><vc:i18n name="物品规格" namespace="editResourceStore"></vc:i18n></span>
                                </label>
                                <div class="col-sm-4">
                                    <select class="custom-select" v-model="editResourceStoreInfo.rssId"
                                            :disabled="editResourceStoreInfo.shType == '2807'">
                                        <option selected disabled value="">
                                            {{vc.i18n('选填，请选择物品规格','editResourceStore')}}
                                        </option>
                                        <option v-for="(item,index) in editResourceStoreInfo.resourceStoreSpecifications"
                                                :key="index" v-bind:value="item.rssId">{{item.specName}}
                                        </option>
                                    </select>
                                </div>
                                <label class="col-sm-2 col-form-label text-right">
                                    <span><vc:i18n name="物品单位" namespace="editResourceStore"></vc:i18n></span>
                                </label>
                                <div class="col-sm-4">
                                    <select class="custom-select" v-model="editResourceStoreInfo.unitCode"
                                            :disabled="editResourceStoreInfo.shType == '2807'">
                                        <option v-for="(item,index) in editResourceStoreInfo.unitCodes" :key="index"
                                                v-bind:value="item.statusCd">{{item.name}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label text-right">
                                    <span><vc:i18n name="固定物品" namespace="editResourceStore"></vc:i18n></span>
                                </label>
                                <div class="col-sm-4">
                                    <select class="custom-select" v-model="editResourceStoreInfo.isFixed" disabled>
                                        <option selected disabled value="">
                                            {{vc.i18n('必填，请选择是否是固定物品','editResourceStore')}}
                                        </option>
                                        <option v-for="(item,index) in editResourceStoreInfo.isFixeds" :key="index"
                                                v-bind:value="item.statusCd">{{item.name}}
                                        </option>
                                    </select>
                                </div>
                                <label class="col-sm-2 col-form-label text-right">
                                    <span><vc:i18n name="参考价格" namespace="editResourceStore"></vc:i18n></span>
                                </label>
                                <div class="col-sm-4">
                                    <input v-model="editResourceStoreInfo.price" type="text"
                                           :disabled="editResourceStoreInfo.shType == '2807'"
                                           :placeholder="vc.i18n('必填，请填写物品采购参考价格','editResourceStore')"
                                           class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label text-right">
                                    <span><vc:i18n name="警告库存" namespace="editResourceStore"></vc:i18n></span>
                                </label>
                                <div class="col-sm-4">
                                    <input v-model="editResourceStoreInfo.warningStock" type="text"
                                           :placeholder="vc.i18n('必填，请填写警告库存','editResourceStore')"
                                           class="form-control">
                                </div>
                                <label class="col-sm-2 col-form-label text-right">
                                    <span><vc:i18n name="最小计量单位" namespace="editResourceStore"></vc:i18n></span>
                                </label>
                                <div class="col-sm-4">
                                    <select class="custom-select" v-model="editResourceStoreInfo.miniUnitCode"
                                            :disabled="editResourceStoreInfo.shType == '2807'">
                                        <option selected disabled value="">
                                            {{vc.i18n('必填，请选择物品最小计量单位','editResourceStore')}}
                                        </option>
                                        <option v-for="(item,index) in editResourceStoreInfo.unitCodes" :key="index"
                                                v-bind:value="item.statusCd">{{item.name}}
                                        </option>
                                    </select>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label text-right">
                                    <span><vc:i18n name="最小计量数量" namespace="editResourceStore"></vc:i18n></span>
                                </label>
                                <div class="col-sm-4">
                                    <input v-model="editResourceStoreInfo.miniUnitStock" type="text"
                                           :disabled="editResourceStoreInfo.shType == '2807'"
                                           :placeholder="vc.i18n('必填，请填写最小计量单位数量','editResourceStore')"
                                           class="form-control">
                                </div>
                                <label class="col-sm-2 col-form-label  text-right">
                                    <span><vc:i18n name="最低收费标准" namespace="editResourceStore"></vc:i18n></span>(最小计量单位)
                                </label>
                                <div class="col-sm-4">
                                    <input v-model="editResourceStoreInfo.outLowPrice" type="text"
                                           :placeholder="vc.i18n('必填，请填写物品最小计量单位，最低收费标准','editResourceStore')"
                                           class="form-control">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label text-right">
                                    <span><vc:i18n name="最高收费标准(最小计量单位)" namespace="editResourceStore"></vc:i18n></span>
                                </label>
                                <div class="col-sm-10">
                                    <input v-model="editResourceStoreInfo.outHighPrice" type="text" id="highPrice"
                                           :placeholder="vc.i18n('必填，请填写物品最小计量单位，最高收费标准','editResourceStore')"
                                           class="form-control" @change="decide()">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label text-right">
                                    <span><vc:i18n name="备注" namespace="editResourceStore"></vc:i18n></span>
                                </label>
                                <div class="col-sm-4">
                                    <textarea :placeholder="vc.i18n('选填，请填写备注','editResourceStore')"
                                              class="form-control" v-model="editResourceStoreInfo.remark">
                                    </textarea>
                                </div>
                                <label class="col-sm-2 col-form-label text-right">
                                    <span><vc:i18n name="描述" namespace="editResourceStore"></vc:i18n></span>
                                </label>
                                <div class="col-sm-4">
                                    <textarea :placeholder="vc.i18n('选填，请填写描述','editResourceStore')"
                                              class="form-control" v-model="editResourceStoreInfo.description">
                                    </textarea>
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-sm-2 col-form-label text-right">
                                    <span><vc:i18n name="图片" namespace="editResourceStore"></vc:i18n></span>
                                </label>
                                <div class="content-img col-sm-10">
                                    <vc:create path="frame/uploadImageUrl" callBackListener="editResourceStore"
                                               callBackFunction="notifyUploadImage" namespace="editResourceStore">
                                    </vc:create>
                                </div>
                            </div>
                            <div class="ibox-content">
                                <button class="btn btn-primary float-right" type="button"
                                        v-on:click="editResourceStore()">
                                    <i class="fa fa-check"></i>&nbsp;保存
                                </button>
                                <button type="button" class="btn btn-warning float-right" style="margin-right:20px;"
                                        data-dismiss="modal">
                                    <i class="fa fa-times"></i>&nbsp;取消
                                </button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>